package com.ruoyi.aitcommon.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 接口日志对象 ait_log
 * 
 * @author cli
 * @date 2022-08-18
 */
public class AitLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 接口id */
    private Long id;

    /** 请求IP */
    @Excel(name = "请求IP")
    private String operIp;

    /** 日志类型 */
    @Excel(name = "日志类型")
    private String logType;

    /** 请求URL */
    @Excel(name = "请求URL")
    private String operUrl;

    /** 请求方法 */
    @Excel(name = "请求方法")
    private String reqMethod;

    /** 接口名称 */
    @Excel(name = "接口名称")
    private String apiName;

    /** 传入参数 */
    @Excel(name = "传入参数")
    private String inParam;

    /** 接口方法 */
    @Excel(name = "接口方法")
    private String apiMethod;

    /** 返回参数 */
    @Excel(name = "返回参数")
    private String retParam;

    /** 返回码 */
    @Excel(name = "返回码")
    private String retcode;

    /** 返回消息 */
    @Excel(name = "返回消息")
    private String retmsg;

    /** 流程名称 */
    @Excel(name = "流程名称")
    private String flowName;

    /** 流程id */
    @Excel(name = "流程id")
//    这里使用fastjson的注解无效,使用jackson的注解有效,不明白
//    @JSONField(serializeUsing = ToStringSerializer.class)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long flowId;

    /** 流程编码 */
    @Excel(name = "流程编码")
    private String flowCode;

    /** 参数字段0 */
    @Excel(name = "参数字段0")
    private String parField0;

    /** 参数字段1 */
    @Excel(name = "参数字段1")
    private String parField1;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 参数字段2 */
    @Excel(name = "参数字段2")
    private String parField2;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 参数字段3 */
    @Excel(name = "参数字段3")
    private String parField3;

    /** 耗时(毫秒) */
    @Excel(name = "耗时(毫秒)")
    private Long runTime;

    /** 参数字段4 */
    @Excel(name = "参数字段4")
    private String parField4;

    /** 参数字段5 */
    @Excel(name = "参数字段5")
    private String parField5;

    /** 参数字段6 */
    @Excel(name = "参数字段6")
    private String parField6;

    /** 参数字段7 */
    @Excel(name = "参数字段7")
    private String parField7;

    /** 参数字段8 */
    @Excel(name = "参数字段8")
    private String parField8;

    /** 参数字段9 */
    @Excel(name = "参数字段9")
    private String parField9;

    /** 返回字段0 */
    @Excel(name = "返回字段0")
    private String retField0;

    /** 返回字段1 */
    @Excel(name = "返回字段1")
    private String retField1;

    /** 返回字段2 */
    @Excel(name = "返回字段2")
    private String retField2;

    /** 返回字段3 */
    @Excel(name = "返回字段3")
    private String retField3;

    /** 返回字段4 */
    @Excel(name = "返回字段4")
    private String retField4;

    /** 返回字段5 */
    @Excel(name = "返回字段5")
    private String retField5;

    /** 返回字段6 */
    @Excel(name = "返回字段6")
    private String retField6;

    /** 返回字段7 */
    @Excel(name = "返回字段7")
    private String retField7;

    /** 返回字段8 */
    @Excel(name = "返回字段8")
    private String retField8;

    /** 返回字段9 */
    @Excel(name = "返回字段9")
    private String retField9;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOperIp(String operIp) 
    {
        this.operIp = operIp;
    }

    public String getOperIp() 
    {
        return operIp;
    }
    public void setLogType(String logType) 
    {
        this.logType = logType;
    }

    public String getLogType() 
    {
        return logType;
    }
    public void setOperUrl(String operUrl) 
    {
        this.operUrl = operUrl;
    }

    public String getOperUrl() 
    {
        return operUrl;
    }
    public void setReqMethod(String reqMethod) 
    {
        this.reqMethod = reqMethod;
    }

    public String getReqMethod() 
    {
        return reqMethod;
    }
    public void setApiName(String apiName) 
    {
        this.apiName = apiName;
    }

    public String getApiName() 
    {
        return apiName;
    }
    public void setInParam(String inParam) 
    {
        this.inParam = inParam;
    }

    public String getInParam() 
    {
        return inParam;
    }
    public void setApiMethod(String apiMethod) 
    {
        this.apiMethod = apiMethod;
    }

    public String getApiMethod() 
    {
        return apiMethod;
    }
    public void setRetParam(String retParam) 
    {
        this.retParam = retParam;
    }

    public String getRetParam() 
    {
        return retParam;
    }
    public void setRetcode(String retcode) 
    {
        this.retcode = retcode;
    }

    public String getRetcode() 
    {
        return retcode;
    }
    public void setRetmsg(String retmsg) 
    {
        this.retmsg = retmsg;
    }

    public String getRetmsg() 
    {
        return retmsg;
    }
    public void setFlowName(String flowName) 
    {
        this.flowName = flowName;
    }

    public String getFlowName() 
    {
        return flowName;
    }
    public void setFlowId(Long flowId) 
    {
        this.flowId = flowId;
    }

    public Long getFlowId() 
    {
        return flowId;
    }
    public void setFlowCode(String flowCode) 
    {
        this.flowCode = flowCode;
    }

    public String getFlowCode() 
    {
        return flowCode;
    }
    public void setParField0(String parField0) 
    {
        this.parField0 = parField0;
    }

    public String getParField0() 
    {
        return parField0;
    }
    public void setParField1(String parField1) 
    {
        this.parField1 = parField1;
    }

    public String getParField1() 
    {
        return parField1;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setParField2(String parField2) 
    {
        this.parField2 = parField2;
    }

    public String getParField2() 
    {
        return parField2;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setParField3(String parField3) 
    {
        this.parField3 = parField3;
    }

    public String getParField3() 
    {
        return parField3;
    }
    public void setRunTime(Long runTime) 
    {
        this.runTime = runTime;
    }

    public Long getRunTime() 
    {
        return runTime;
    }
    public void setParField4(String parField4) 
    {
        this.parField4 = parField4;
    }

    public String getParField4() 
    {
        return parField4;
    }
    public void setParField5(String parField5) 
    {
        this.parField5 = parField5;
    }

    public String getParField5() 
    {
        return parField5;
    }
    public void setParField6(String parField6) 
    {
        this.parField6 = parField6;
    }

    public String getParField6() 
    {
        return parField6;
    }
    public void setParField7(String parField7) 
    {
        this.parField7 = parField7;
    }

    public String getParField7() 
    {
        return parField7;
    }
    public void setParField8(String parField8) 
    {
        this.parField8 = parField8;
    }

    public String getParField8() 
    {
        return parField8;
    }
    public void setParField9(String parField9) 
    {
        this.parField9 = parField9;
    }

    public String getParField9() 
    {
        return parField9;
    }
    public void setRetField0(String retField0) 
    {
        this.retField0 = retField0;
    }

    public String getRetField0() 
    {
        return retField0;
    }
    public void setRetField1(String retField1) 
    {
        this.retField1 = retField1;
    }

    public String getRetField1() 
    {
        return retField1;
    }
    public void setRetField2(String retField2) 
    {
        this.retField2 = retField2;
    }

    public String getRetField2() 
    {
        return retField2;
    }
    public void setRetField3(String retField3) 
    {
        this.retField3 = retField3;
    }

    public String getRetField3() 
    {
        return retField3;
    }
    public void setRetField4(String retField4) 
    {
        this.retField4 = retField4;
    }

    public String getRetField4() 
    {
        return retField4;
    }
    public void setRetField5(String retField5) 
    {
        this.retField5 = retField5;
    }

    public String getRetField5() 
    {
        return retField5;
    }
    public void setRetField6(String retField6) 
    {
        this.retField6 = retField6;
    }

    public String getRetField6() 
    {
        return retField6;
    }
    public void setRetField7(String retField7) 
    {
        this.retField7 = retField7;
    }

    public String getRetField7() 
    {
        return retField7;
    }
    public void setRetField8(String retField8) 
    {
        this.retField8 = retField8;
    }

    public String getRetField8() 
    {
        return retField8;
    }
    public void setRetField9(String retField9) 
    {
        this.retField9 = retField9;
    }

    public String getRetField9() 
    {
        return retField9;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("operIp", getOperIp())
            .append("logType", getLogType())
            .append("operUrl", getOperUrl())
            .append("reqMethod", getReqMethod())
            .append("apiName", getApiName())
            .append("inParam", getInParam())
            .append("apiMethod", getApiMethod())
            .append("retParam", getRetParam())
            .append("retcode", getRetcode())
            .append("retmsg", getRetmsg())
            .append("flowName", getFlowName())
            .append("flowId", getFlowId())
            .append("flowCode", getFlowCode())
            .append("parField0", getParField0())
            .append("parField1", getParField1())
            .append("startDate", getStartDate())
            .append("parField2", getParField2())
            .append("endDate", getEndDate())
            .append("parField3", getParField3())
            .append("runTime", getRunTime())
            .append("parField4", getParField4())
            .append("parField5", getParField5())
            .append("parField6", getParField6())
            .append("parField7", getParField7())
            .append("parField8", getParField8())
            .append("parField9", getParField9())
            .append("retField0", getRetField0())
            .append("retField1", getRetField1())
            .append("retField2", getRetField2())
            .append("retField3", getRetField3())
            .append("retField4", getRetField4())
            .append("retField5", getRetField5())
            .append("retField6", getRetField6())
            .append("retField7", getRetField7())
            .append("retField8", getRetField8())
            .append("retField9", getRetField9())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}